﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyDoiTuongXem.aspx.cs" Inherits="LotteCinema.QuanLyDoiTuongXem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style28
        {
            margin-left: 58px;
        }
        .style29
        {
            margin-left: 236px;
        }
        .style30
        {
            margin-left: 148px;
        }
        .style31
        {
            width: 183px;
            text-align: right;
        }
        .style32
        {
            font-size: large;
        }
        .style33
        {
            margin-left: 40px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title"  style="font-size:14pt;">QUẢN LÝ ĐỐI TƯỢNG XEM</div>
    <table style="width:100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td align="center">
                <asp:Label ID="lblThongBao" runat="server" CssClass="style32" ForeColor="Red"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td class="style31">
                
            </td>
            <td align="center" >
            <asp:Label ID="lblMaDTX" runat="server" Text="Mã Đối Tượng Xem:"></asp:Label>
                <asp:DropDownList ID="DDLMaDTX" runat="server" AutoPostBack="True" 
                    CssClass="style28" Height="28px" 
                    onselectedindexchanged="DDLMaDTX_SelectedIndexChanged" Width="169px">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
                <td style="width:100px;"></td>
        </tr>
        <tr>
            <td class="style31">
                
            </td>
            <td align="center">
                <asp:Label ID="Label2" runat="server" Text="Tên Đối Tượng Xem:"></asp:Label>
                <asp:TextBox ID="txtTenDTX" runat="server" CssClass="style28" Height="22px" 
                    Width="163px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                
            </td>
            <td align="center">
                 <asp:Button ID="btTimKiem" runat="server" onclick="btTimKiem_Click" 
                    Text="Tìm Kiếm" />
            </td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td class="style26">
               
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style33" align="center">
                <asp:GridView ID="grDoiTuongXem" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" BackColor="White" 
                    BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
                    CellSpacing="1" CssClass="style29" DataKeyNames="MADT" GridLines="None" 
                    onselectedindexchanged="grDoiTuongXem_SelectedIndexChanged" 
                    onpageindexchanging="grDoiTuongXem_PageIndexChanging">
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
                        <asp:BoundField DataField="MADT" HeaderText="MADT" ReadOnly="True" 
                            SortExpression="MADT" />
                        <asp:BoundField DataField="TENDT" HeaderText="TENDT" HtmlEncode="False" 
                            SortExpression="TENDT" />
                    </Columns>
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="#E7E7FF" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#594B9C" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#33276A" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [DOITUONGXEM]"></asp:SqlDataSource>
            </td>
            <td style="width:190px;">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width:100px;">
                &nbsp;</td>
            <td align="center">
                <asp:ImageButton ID="imThem" runat="server" CssClass="style30" Height="52px" 
                    ImageUrl="~/Images/THEM.png" onclick="imThem_Click" Width="110px" />
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" 
                    ImageUrl="~/Images/xoa.png" onclick="imXoa_Click" Width="110px" />
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" onclick="imSua_Click" Width="110px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
